package lianxi6;
//文学系
public class literatureDept extends Student{
    private double speech;//演讲
    private double works;//作品
    private double finalExam;//期末考试
    private double midExam;//期中考试

    public literatureDept(String sid, String sname, String ssex, int sage, double speech, double works, double finalExam, double midExam) {
        super(sid, sname, ssex, sage);
        this.speech = speech;
        this.works = works;
        this.finalExam = finalExam;
        this.midExam = midExam;
    }

    public double getSpeech() {
        return speech;
    }

    public double getWorks() {
        return works;
    }

    public double getFinalExam() {
        return finalExam;
    }

    public double getMidExam() {
        return midExam;
    }

    @Override
    public String toString() {
        return "文学系：学号：'" + getSid() + '\'' +
                ", 姓名：'" + getSname() + '\'' +
                ", 性别：'" + getSsex() + '\'' +
                ", 年龄：'" + getSage() + '\'' +
                ", 综合成绩：'" + (getSpeech()*0.35 + getWorks()*0.35 + getFinalExam()*0.15 + getMidExam()*0.15)+'\'' +
                '}';
    }
}
